@use "../../styles/common/mask";
@import "../../styles/lib/icon";

.popup,
.mask {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;

  &.show {
    opacity: 1;
    visibility: visible;
  }
}

.popup {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5000;

  overflow: hidden;

  border-top-left-radius: 12px;
  border-top-right-radius: 12px;

  background-color: var(--bg-dialog);

  line-height: 1.4;

  transition: all 0.3s;

  transform: translateY(100%);

  &.show {
    transform: translateY(0);
  }
}

.popup-header {
  display: flex;
  flex: 0;
  align-items: center;

  min-height: 64px;
  padding: 0 24px;
}

.popup-header-button {
  width: 24px;
  height: 24px;
}

.popup-header-icon {
  width: 24px;
  height: 24px;
}

.popup-header-title {
  flex: 1;
  padding: 0 32px;
  text-align: center;

  &:last-child {
    padding-right: 56px;
  }

  .title {
    display: block;
    color: var(--text-color);
    font-weight: 700;
    font-size: 15px;
  }

  .subtitle {
    display: block;
    color: var(--grey);
    font-size: 10px;
  }
}

.popup-body {
  position: relative;
  flex: 1;
  max-height: 75vh;
  word-wrap: break-word;

  &.skyline {
    height: 75vh;
  }

  .text {
    padding-top: 4px;

    color: var(--text-color);

    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
  }

  .desc {
    padding-top: 16px;
    color: var(--light-grey);
    font-size: 14px;
    line-height: 1.4;
  }
}

.popup-footer {
  padding: 24px 24px 0;
  text-align: center;
}

.popup-button {
  display: inline-block;
  vertical-align: top;

  width: 120px;
  margin: 0 8px;

  background-color: var(--bg-block);

  &.primary {
    background-color: var(--theme-color) !important;
  }
}
